from django.urls import path, re_path, include
from rest_framework.routers import SimpleRouter

from course import views

router = SimpleRouter()
router.register('categories', viewset=views.CourseCategoryView, basename='categories')
router.register('free', viewset=views.CourseView, basename='free')
router.register('chapters', viewset=views.CourseChapterView, basename='coursechapter')
router.register('search', viewset=views.CourseSearchView, basename='search')

urlpatterns = [
    path('', include(router.urls)),
]